//
//  ViewController.swift
//  jiemian
//
//  Created by mac on 16/3/24.
//  Copyright © 2016年 Qingke. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    let word = ["大吉大利","大智若愚"," 加油"]
    @IBOutlet weak var hongBaoLabel: UILabel!

    @IBOutlet weak var newButton: UILabel!
    
    @IBAction func newYear(sender: UIButton) {
        let random1 = arc4random_uniform(UInt32(word.count))
        newButton.text = word[Int(random1)]
        let random2 = arc4random_uniform(200) + 1
        hongBaoLabel.text = "你的红包是\(random2)"
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

